<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据绑定</title>
    <!-- 引入Vue -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> 
</head>
<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        单向数据绑定: <input type="text" v-bind:value="name">
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false // 阻止vue在启动时生成生产提示
        new Vue({
            el: '#root',
            data:{
                name: '尚硅谷'
            }
        })
    </script>
</body>
</html>